<?php if ($this->_var['top_goods']): ?>
<div class="top_area">
  <h3 class="TopTit"><?php echo $this->_var['lang']['top10']; ?><span class="L"></span><span class="R"></span></h3>
<ul id="top10">
 <?php $_from = $this->_var['top_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['top_goods'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['top_goods']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['top_goods']['iteration']++;
?>
 <?php if (($this->_foreach['top_goods']['iteration'] - 1) <= 9): ?>
 <li>
  <div class="first">
  <span><?php echo $this->_foreach['top_goods']['iteration']; ?></span><a href="<?php echo $this->_var['goods']['url']; ?>"><?php echo $this->_var['goods']['short_name']; ?></a>
  </div>
  <div class="last clearfix">
  <ul>
      <li><div class="imgbox"><span><?php echo $this->_foreach['top_goods']['iteration']; ?></span> <a href="<?php echo $this->_var['goods']['url']; ?>"><img src="<?php echo $this->_var['goods']['thumb']; ?>" alt="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>" /></a></div></li>
      <li><a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>"><?php echo $this->_var['goods']['short_name']; ?></a></li>
      <li><font><?php echo $this->_var['goods']['price']; ?> </font></li>
  </ul>
  </div>
 </li>
 <?php endif; ?>
 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
 </ul>
<script>elems("top10","cur");</script>
</div>
<?php endif; ?>

